<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--输出hello数据-->
<p th:text="${hello}"></p>
<form th:action="@{/thymeleaf/hello}">
    <input th:type="text" th:name="id">
    <button>提交</button>
</form>
------------------------------------------
<!--list集合-->
<table>
    <tr>
        <td>下标</td>
        <td>编号</td>
        <td>姓名</td>
        <td>住址</td>
    </tr>
    <tr th:each="user,userstate:${list}">
        <td th:text="${userstate.index}"></td>
        <td th:text="${user.id}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.address}"></td>
    </tr>
</table>
------------------------------------------
<!--map集合-->
<div th:each="map,mapstate:${dateMap}">
    <div th:text="${map}"></div>
    key:<span th:text="${mapstate.current.key}"></span><br>
    value:<span th:text="${mapstate.current.value}"></span><br>
</div>
-------------------------------------------
<!--数组-->
<div th:each="name,namestate:${names}">
    序号:<span th:text="${namestate.count}"></span>
    姓名:<span th:text="${name}"></span>
</div>
-------------------------------------------
<!--日期-->
<div>
    <span th:text="${now}"></span><br>
    <span th:text="${#dates.format(now,'yyyy-MM-dd hh:mm:ss')}"></span>
</div>
-------------------------------------------
<!--if判断-->
<div>
    <span th:if="${age>20}" th:text="狗捷你终于长大了啊"></span>
</div>
-------------------------------------------
<!--引入其他页面-->
<div th:include="foot::copy"></div>
</body>
</html>